<template>
  <view class="content">
    刮刮乐-中大奖
    <view class="box">
      <scraping-happy ref="scrapingHappy" />
    </view>
    <button @tap="again">再来一次</button>
  </view>
</template>

<script>
import ScrapingHappy from './ScrapingHappy.vue';

export default {
  components: { ScrapingHappy },
  data() {
    return {
      tabValue: 'offLine',
			array: ['测试1', '测试2', '测试3', '测试4'],
    };
  },
  methods: {
    tabEvent(value) {
			this.tabValue = value;
		},
		cantManageFlag() {

		},
		success(res) {
			console.log(res)
		},
    again() {
      this.$refs.scrapingHappy.reset();
    }
  },
};
</script>

<style>
.content {
  box-sizing: border-box;
  padding: 24rpx;
}
.box {
  width: 100%;
  height: 200rpx;
  margin: 20rpx auto;
}
</style>
